package circularity;

/**
 * This class represents a book that may have many authors.
 * 
 * Note that 'authors' is maintained as a public field  
 * with no attempt at data hiding, in order to make it simple
 * to manipulate this field directly.
 * A more robust implementation would, of course, make this
 * private and expose methods such as 
 *   public void clearAuthors();
 * and
 *   public void addAuthor(AuthorCircMany author);
 * 
 * This class participates in a many-to-many relationship with
 * AuthorCircMany:
 *   BookCircMany <*----*> AuthorCircMany
 *   
 * @author Sachin Venugopalan
 * @since 27 February, 2012
 */
import java.util.List;

public class BookCircMany {
	
	private String name;
	private int yearOfPub;
	public List<AuthorCircMany> authors;
	
	public BookCircMany(String name, int yearOfPub){
		this.name = name;
		this.yearOfPub = yearOfPub;
	}
	
	public String getName(){
		return this.name;
	}

	public int getYearOfPub(){
		return this.yearOfPub;
	}

}
